<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<link rel="stylesheet" media="screen,projection" type="text/css" href="./css/admin/reset.css" />
<!-- RESET -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="./css/admin/main.css" />
<!-- MAIN STYLE SHEET -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="./css/admin/2col.css" title="2col" />
<!-- DEFAULT: 2 COLUMNS -->
<link rel="alternate stylesheet" media="screen,projection" type="text/css" href="./css/admin/1col.css" title="1col" />
<!-- ALTERNATE: 1 COLUMN -->
<!--[if lte IE 6]><link rel="stylesheet" media="screen,projection" type="text/css" href="./css/main-ie6.css" /><![endif]-->
<!-- MSIE6 -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="./css/admin/style.css" />
<!-- GRAPHIC THEME -->
<link rel="stylesheet" media="screen,projection" type="text/css" href="./css/admin/mystyle.css" />
<!-- WRITE YOUR CSS CODE HERE -->
<{insert_scripts files="./js/jquery-1.7.2.min.js,./js/toggle.js,./js/toggle.js,./js/ui.core.js,./js/ui.tabs.js,./js/jquery.boxy.js"}>
<script type="text/javascript">
$(function(){
	$(".tabs > ul").tabs();	
	$(".imgpre").mouseover(function(){
		$(this).next("div").show();			
	}).mouseout(function(){
		$(".imgpreview").hide();		
	});	
	
});
	</script>
<title>后台管理首页</title>
</head>
<body>
<div id="main">
  <!-- Tray -->
  <div id="tray" class="box">
    <p class="f-left box">
      <!-- Switcher -->
      <span class="f-left" id="switcher"> <a href="#" rel="1col" class="styleswitch ico-col1" title="Display one column"><img src="images/admin/switcher-1col.gif" alt="1 Column" /></a> <a href="#" rel="2col" class="styleswitch ico-col2" title="Display two columns"><img src="images/admin/switcher-2col.gif" alt="2 Columns" /></a> </span> 网站后台管理系统: <strong>WISE-ANALYSIS </strong> </p>
    <p class="f-right">欢迎: <strong><{$smarty.session.adminUserName}></strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><a href="<{spUrl c=admin a=logout}>

" id="logout">退出</a></strong></p>
  </div>
  <!--  /tray -->
  <hr class="noscreen" />
  <!-- Menu -->
<{include file="./admin/top.htm" }>   
  <!-- /header -->
  <hr class="noscreen" />
  <!-- Columns -->
  <div id="cols" class="box">
<{include file="./admin/common.htm" }> 

    <hr class="noscreen" />
    <!-- Content (Right Column) -->
 <div id="content" class="box box1" style="min-height:550px;">
      <h1 class="tit">广告设置</h1>

 <div class="tabs box">
        <ul>
          <li><a href="#tab01"><span>广告列表</span></a></li>
          <li><a href="#tab02"><span>广告编辑</span></a></li>
          <li><a href="#tab03"><span>广告位</span></a></li>
        </ul>
      </div>
      <!-- /tabs -->    
      <!-- Tab01 -->
      <div id="tab01">
         <table class="aligncenter">
        <tr>
          <th>序号</th>
          <th width="350">描述</th>
          <th>显示状态</th>
          <th>预览</th>
          <th>修改时间</th>
          <th>可用操作</th>
        </tr>
         <{foreach from=$res item=datil key=id}> 
          <tr id="adtr_<{$datil.id}>" <{if $id%2!=0}>class="bg"<{/if}>>
         
         
          <td><{$id+1}></td>
          <td><{$datil.upload_discription}></td>
          <td><{if $datil.show_status==1}><img alt="1" src="./images/admin/yes.gif"  />显示<{else}><font color="#FF0000"><img alt="0" src="./images/admin/warning_small.gif"  />屏蔽</font><{/if}></td>
          <td><a  href="javascript:void(0)" class="imgpre"><img src="./images/admin/slide.png" /></a><div class="imgpreview"><img src="<{$datil.upload_url}>"/></div></td>
          <td><{$datil|date_format:'%Y-%m-%d %H:%M:%S'}></td>
          <td>
           [&nbsp;<a href="javascript:auth(<{$datil.id}>)" title="编辑此广告位"><img  src="./images/admin/icon-16-article.png"/></a>
          
          &nbsp;&nbsp;&nbsp;&nbsp;
          <{if $datil.show_status==1}>
          <a  href="./index.php?c=admin&a=index&mod=adStatus&show=no&id=<{$datil.id}>" title="前台屏蔽此广告"><img  src="./images/admin/icon-16-notdefault.png"/></a>
          <{else}>
          <a  href="./index.php?c=admin&a=index&mod=adStatus&show=yes&id=<{$datil.id}>" title="前台显示此广告"><img  src="./images/admin/icon-16-default.png"/></a>
          <{/if}>
          &nbsp;]
          </td>
           </tr>
          <{/foreach}>        
      </table>

      </div>
      <!-- /tab03 -->
      <!-- Tab04 -->
       <div id="tab02">
  <form  method="post" name="indexsetting" action="./index.php?c=admin&a=index&mod=authChangeAction" >
   <fieldset>
 <legend>权限设置</legend>
      <table class="nostyle">
        <tr>
          <td style="width:90px;">选择广告位:</td>
          <td>
			<select name='ad_id' id="ad_select">
   				 <{html_options options=$ad_options selected=$ad_id}>
			</select>
          
          </td>
        </tr>
                <tr><td colspan="2">&nbsp;&nbsp;</td></tr>
        <tr>
          <td>显示状态:</td>
          <td><label>
            <input type="radio" name="status" />
            前台显示</label>
            &nbsp;
            <label>
            <input type="radio"  name="status" />
            前台屏蔽</label>
            &nbsp;
          </td>
        </tr>
        <tr>
          <td></td><td><input type="submit" id="r_s" class="input-submit" value="提交" /></td>
        </tr>
      </table>
      </fieldset>
     </form> 
      </div>
      <!-- /tab04 -->

 
 
 
 </div>  
</div>  
  
  
  
  
  
  <!-- /cols -->
  <hr class="noscreen" />
  <!-- Footer -->
  <div id="footer" class="box">
    <p class="f-left">&copy; 2012 All Rights Reserved &reg;</p>
    <p class="f-right">技术支持<a href="#/"></a> QQ:1242369560</p>
  </div>
  <!-- /footer -->
</div>
<!-- /main -->
</body>
</html>
